package kt.com.bilin.coin.utils

import android.content.Context
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
//import com.google.android.flexbox.FlexboxLayoutManager

/*class FullyFlexboxLayoutManager(
    context: Context,
    private val canScrollVertically: Boolean = false,
    private val canScrollHorizontally: Boolean = false
) : FlexboxLayoutManager(context) {
    override fun canScrollVertically() = canScrollVertically
    override fun canScrollHorizontally() = canScrollHorizontally
}*/

class FullyGridLayoutManager(
    context: Context,
    spanCount: Int,
    private val canScrollVertically: Boolean = false,
    private val canScrollHorizontally: Boolean = false
) : GridLayoutManager(context, spanCount) {
    override fun canScrollVertically() = canScrollVertically
    override fun canScrollHorizontally() = canScrollHorizontally
}

class FullyLinearLayoutManager(
    context: Context,
    orientation: Int = RecyclerView.VERTICAL,
    reverseLayout: Boolean = false,
    private val canScrollVertically: Boolean = false,
    private val canScrollHorizontally: Boolean = false
) : LinearLayoutManager(context, orientation, reverseLayout) {
    override fun canScrollVertically() = canScrollVertically
    override fun canScrollHorizontally() = canScrollHorizontally
}